package com.system.honour.service;

import com.system.honour.beans.PageQuery;
import com.system.honour.beans.PageResult;
import com.system.honour.common.ResultDTO;
import com.system.honour.dto.UserDTO;
import com.system.honour.entity.SysUser;

public interface UserService {

    SysUser getUser(String username);

    PageResult<SysUser> getUserByPage(PageQuery page);

    ResultDTO save(UserDTO param, Integer roleId);

    ResultDTO update(UserDTO param, Integer roleId);

    SysUser getByTelephone(String telephone);

    ResultDTO deleteById(Integer id);

    PageResult getUserByVague(String username, PageQuery page);
}
